<!-- imports -->
<%@page import="java.sql.Date"%>
<%@page import="www.nomina.controller.beans.usuarioBean"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page language="java"%>
<%
	if (request.getSession().getAttribute("sesion") == null) {
		request.getSession().setAttribute("error", 1);
		response.sendRedirect("CLOSE");
	} else {
		usuarioBean usuario = (usuarioBean) request.getSession()
				.getAttribute("sesion");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<!--IMPORTANTO ESTILOS-->
<link rel="stylesheet" href="CSS/home.css" type="text/css" />
<link rel="stylesheet" href="CSS/menu.css" type="text/css" />
<link rel="stylesheet" href="CSS/formularios.css" type="text/css" />

<!--IMPORTANTO JS-->
<SCRIPT type=text/javascript src="JS/efectos.js"></SCRIPT>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>SISTEMA DE NOMINA</title>
</head>
<body>
	<%
		java.util.Calendar cal = java.util.Calendar
					.getInstance(java.util.Locale.US);
			java.util.Date date = cal.getTime();
			java.text.DateFormat formateadorHora = java.text.DateFormat
					.getTimeInstance(java.text.DateFormat.FULL);
			java.text.DateFormat formateadorFecha = java.text.DateFormat
					.getDateInstance(java.text.DateFormat.FULL);

			out.println("Hoy es " + formateadorFecha.format(date));
			//out.println(formateadorHora.format(date));
	%>
	<!-- Menu -->
	<%@ include file='../menu.jsp'%>
	<!-- header -->
	<div id="header">
		<table width="100%">
			<tr>
				<th width="5%"><a href='javascript:;'
					onclick="document.getElementById('home').submit();"> <img
						align="left" title="INICIO" alt="INICIO" src="IMG/MENU/home.png"
						width="40px" height="35px">
				</a></th>
				<th width="35%">
					<%
						out.println(usuario.nombreCompleto());
					%>
				</th>
				<th width="45%" align="right">
					<form id="buscar" action="BUSCADOR" method="post" name="buscador">
						<input type="hidden" name="dispatch" value="1" /> <input
							name="rfc" type="text" class="datos" size="50"
							onfocus="if (this.value == 'ESCRIBE RFC') {this.value=''}"
							value="ESCRIBE RFC"
							onblur="if(this.value == '') { this.value='ESCRIBE RFC'}"
							maxlength="20">
					</form>
				</th>
				<th width="5%"><a href='javascript:;'
					onclick="document.getElementById('buscar').submit();"><img
						align="right" title="BUSCAR REGISTRO" alt="BUSCAR REGISTRO"
						src="IMG/MENU/buscar.png" width="40px" height="35px"> </a></th>
				<th width="5%"><a href='javascript:;'
					onclick="document.getElementById('menuCuenta').submit();"> <img
						align="right" title="CONFIGURAR CUENTA" alt="CONFIGURAR CUENTA"
						src="IMG/MENU/configuracion.png" width="40px" height="35px">
				</a></th>
				<th width="5%"><a href="VIEW/SECURITY/singOut.jsp"> <img
						align="right" title="TERMINAR SESION" alt="TERMINAR SESION"
						src="IMG/MENU/exit.png" width="40px" height="35px">
				</a></th>
			</tr>
		</table>
	</div>
	<!-- Body -->
	<center>
		<div id="contenedor2">
			<hr>
			<table width="100%">
				<tr>
					<th><h1>Consulta de nominas</h1>
						<br>
						<small>Copyright © 2014 SISTEMA DE NOMINA V1.0</small></th>
					<th><a href='javascript:;'
						onclick="document.getElementById('menuCuenta').submit();"> <img
							align="top" title="Regresar al menu principal" alt="Back"
							src="IMG/BUTTONS/back.ico" width="50px" height="50px"></a></th>
				</tr>
			</table>
			<hr>

		</div>
	</center>
</body>
</html>
<%
	}
%>